import request from '@/utils/request'

export default {
  //获取视频凭证
  getPlayAuth(id) {
    return request({
      url: `/eduvod/video/getPlayAuth/${id}`,
      method: 'get'
    })
  },
  //根据章节id获取小节
  getVideoByChapterId(chapterId){
    return request({
      url: `/eduservice/video/getVideoByChapterId/${chapterId}`,
      method: 'get'
    })
  },
  //增加视频浏览量的方法
  addPlayCount(id) {
    return request({
      url: `/eduservice/video/addViewCount/${id}`,
      method: 'get',
    })
  },
}
